<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
</head>
<body>
    <%
        pageContext.setAttribute("sex","male");
    %>

    用户名：<%=request.getAttribute("username") %>
    <hr>

    性别：${pageScope.sex} 或 ${sex} <br>
    用户名：${requestScope.username} 或 ${requestScope["username"]} 或 ${username}<br>
    密码：${sessionScope.password} 或 ${password} <br>
    爱好：${applicationScope.hobby} 或 ${hobby} <br>

    地址：${address} <br>

    姓名：${requestScope.user.name} <br>
    年龄：${user.age}
    <hr>

    <%--
        EL隐式对象
    --%>
    应用的访问路径：${pageContext.request.contextPath }

    <script src="${pageContext.request.contextPath}/js/jquery-3.3.1.js"></script>
</body>
</html>
